/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package app.view.gui;

/**
 *
 * @author Murilo
 */
public class PrincipalProfessor extends javax.swing.JFrame {

    private String CodigoMatricula;
    
    public PrincipalProfessor(String CodigoMatricula) {
        initComponents();
        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        pack();
        setLocation((screenSize.width/2) - (getWidth()/2), (screenSize.height/2) - (getHeight()/2));
        this.CodigoMatricula = CodigoMatricula;
    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jButton3 = new javax.swing.JButton();
        btnLancarNotas = new javax.swing.JButton();
        btnChamadaeletronica = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Sistema Acadêmico - Professor");

        jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/app/view/gui/imgs/back_2.png"))); // NOI18N
        jButton3.setText("Voltar");
        jButton3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton3ActionPerformed(evt);
            }
        });

        btnLancarNotas.setIcon(new javax.swing.ImageIcon(getClass().getResource("/app/view/gui/imgs/notas.png"))); // NOI18N
        btnLancarNotas.setText("Lançar Notas");
        btnLancarNotas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnLancarNotasActionPerformed(evt);
            }
        });

        btnChamadaeletronica.setIcon(new javax.swing.ImageIcon(getClass().getResource("/app/view/gui/imgs/lancarFaltas.png"))); // NOI18N
        btnChamadaeletronica.setText("Efetuar Chamada Eletrônica");
        btnChamadaeletronica.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnChamadaeletronicaActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(btnLancarNotas)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnChamadaeletronica))
            .addGroup(layout.createSequentialGroup()
                .addGap(131, 131, 131)
                .addComponent(jButton3))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnLancarNotas)
                    .addComponent(btnChamadaeletronica))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(5, 5, 5))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed
        this.dispose();        // TODO add your handling code here:
    }//GEN-LAST:event_jButton3ActionPerformed

    private void btnLancarNotasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnLancarNotasActionPerformed
        LancarNotas LN = new LancarNotas(CodigoMatricula);
        LN.setVisible(true);
    }//GEN-LAST:event_btnLancarNotasActionPerformed

    private void btnChamadaeletronicaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnChamadaeletronicaActionPerformed
        LancarChamada LC = new LancarChamada(CodigoMatricula);
        LC.setVisible(true);
    }//GEN-LAST:event_btnChamadaeletronicaActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnChamadaeletronica;
    private javax.swing.JButton btnLancarNotas;
    private javax.swing.JButton jButton3;
    // End of variables declaration//GEN-END:variables
}
